home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Programming Languages Suite
/
ProgramD2.iso
/
T U R B O Language
/
Turbo C Tools v6.0
/
EXAMPLES
/
MAKTCWIN.BAT
< prev
next >
Wrap
DOS Batch File
|
1989-03-31
|
1KB
|
36 lines
: MAKTCWIN.BAT (C)Copyright Blaise Computing Inc. 1989
:
: This batch file constructs TCWIN.EXE, the executable version of the
: example program TCWIN.C.
:
: The following assumptions are made:
:
: 1) The source file TCWIN.C is in the current directory.
:
: 2) NW_T2?.OBJ is in the \TURBOC\LIB directory, where ? is either
: S, M, C or L, depending on the memory model specified.
:
: 2) The command line version of Turbo C (version 1.5 or later) is
: in a directory accessible via the PATH environment variable.
:
: 3) All the appropriate Turbo C and Turbo C TOOLS header files
: are in \TURBOC\INCLUDE.
:
: 4) TCT_T2?.LIB and all the appropriate Turbo C library files
: are in \TURBOC\LIB.
:
: The command line format is:
:
: maktcwin model
:
: where model is either s, m, c, or l (in lower case)
: for small, medium, compact, or large memory model.
:
: Method: Because TCWIN is designed to use the Turbo C TOOLS windows
: in conjunction with the Turbo C text window, TCWIN must be linked
: with the proper NW_T2?.OBJ ("native windows") file. The purpose
: of this batch file is to show one correct method of linking
: with NW_T2?.OBJ.
tcc -m%1 -w -O -I\turboc\include -L\turboc\lib tcwin.c \turboc\lib\nw_t2%1.obj tct_t2%1.lib